<template>
  <div class="container">
    <div class="login-page pc-style">
      <div class="login-tab">
        <div class="tab-selected">
          <span>账号登录</span>
          <span class="tabline tabline-width"></span>
        </div>
      </div>
      <div class="mail-login" type="login">
        <div class="common-input">
          <div class="input-view">
            <el-input placeholder="请输入注册账号"  />
            <p class="err-view"> </p>
          </div>
        </div>
      </div>
        <div class="next-btn-view">
          <button class="next-btn btn-active" style="margin: 16px 0px" @click="login">登录</button>
        </div>
    </div>
  </div>
</template>

<script>
import {Message} from "element-ui";

export default {
  name: 'AppLogin',
  data() {
    return {};
  },

  mounted() {},

  methods: {
    // 登录
    login(){
    Message.success('登录成功')
  }
  }
};
</script>
<style scoped>
div {
  display: block;
}

.container {
  background-color: #f1f1f1;
  background-size: cover;
  object-fit: cover;
  height: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-page {
  overflow: hidden;
  background: red;
  height:100%;
}

.pc-style {
  position: relative;
  width: 400px;
  height: 464px;
  background: #fff;
  border-radius: 4px;
  -webkit-box-shadow: 2px 2px 6px #aaa;
  box-shadow: 2px 2px 6px #aaa;
}

.login-tab {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: #1e1e1e;
  font-size: 14px;
  color: #1e1e1e;
  font-weight: 500;
  height: 46px;
  line-height: 44px;
  margin-bottom: 40px;
  border-bottom: 1px solid #c3c9d5;

  div {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
    cursor: pointer;
  }

  .tabline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: inline-block;
    width: 0;
    height: 2px;
    background: #3d5b96;
    -webkit-transition: width 0.5s cubic-bezier(0.46, 1, 0.23, 1.52);
    transition: width 0.5s cubic-bezier(0.46, 1, 0.23, 1.52);
  }

}

.mail-login {
  margin: 0px 24px;
}

.common-input {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;

  .input-view {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;

  }
}

.next-btn {
  background: #3d5b96;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  line-height: 40px;
  text-align: center;
  width: 100%;
  outline: none;
  cursor: pointer;
}

button {
  background: transparent;
  padding: 0;
  border-width: 0px;
}

button,
input,
select,
textarea {
  margin: 0;
  padding: 0;
  outline: none;
}

</style>